﻿Imports System.IO

Public Class LogGenerator
    Private Const FILE_NAME As String = "log.txt"

    Public Function writeLog(ByVal log As String) As Boolean
        Using sw As New StreamWriter(FILE_NAME, FileMode.OpenOrCreate)
            ' Write data to Test.data.
            Try
                sw.Write(log)
                Return True
            Catch ex As Exception
                'w.Write(ex.ToString)
                Return False
            End Try
        End Using
    End Function
End Class
